from fastapi import APIRouter, Depends, UploadFile, File
from sqlmodel import Session

from app.core.db import get_session
from app.schemas.welcome import WelcomePublic, WelcomeCreate
from app.crud.welcome import create_welcome
router = APIRouter()

@router.post("/create", response_model=WelcomePublic)
async def create(*, session: Session = Depends(get_session), file: UploadFile = File(...)):
    return await create_welcome(session, file)